.course-selection-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #f3e8ff; /* 浅紫色背景 */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(128, 0, 128, 0.2); /* 紫色阴影 */
    border: 1px solid #d1b3ff; /* 边框为较深的紫色 */
}

.available-courses,
.selected-courses {
    margin-bottom: 20px;
}

.course-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    background: #ffffff; /* 保持白色背景 */
    border: 1px solid #d3c1e5; /* 紫色边框 */
    border-radius: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-item:hover {
    transform: translateY(-2px); /* 鼠标悬停时轻微上移 */
    box-shadow: 0 4px 8px rgba(128, 0, 128, 0.2); /* 增强阴影 */
}

.course-item span {
    font-size: 1rem;
    color: #5a2d82; /* 深紫色字体 */
}

.select-course-button {
    padding: 5px 15px;
    background-color: #6a0dad; /* 紫色按钮背景 */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.select-course-button:hover {
    background-color: #8e44ad; /* 鼠标悬停时更亮的紫色 */
    transform: scale(1.05); /* 放大按钮 */
}

.select-course-button:disabled {
    background-color: #d3c1e5; /* 禁用按钮为浅紫色 */
    cursor: not-allowed;
}

.selected-courses ul {
    list-style: none;
    padding: 0;
}

.selected-courses li {
    padding: 5px 0;
    border-bottom: 1px solid #d1b3ff; /* 紫色分割线 */
    color: #5a2d82; /* 深紫色字体 */
}

h2, h3 {
    color: #4b0082; /* 深紫色标题 */
}

p {
    color: #6a0dad; /* 紫色说明文字 */
    font-size: 0.95rem;
}